home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gtk / gtktoolitem.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  4.7 KB  |  121 lines

  1. /* gtktoolitem.c
  2.  *
  3.  * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org>
  4.  * Copyright (C) 2002 James Henstridge <james@daa.com.au>
  5.  * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk>
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the
  19.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA.
  21.  */
  22.  
  23. #ifndef __GTK_TOOL_ITEM_H__
  24. #define __GTK_TOOL_ITEM_H__
  25.  
  26. #include <gtk/gtkbin.h>
  27. #include <gtk/gtktooltips.h>
  28. #include <gtk/gtkmenuitem.h>
  29.  
  30. G_BEGIN_DECLS
  31.  
  32. #define GTK_TYPE_TOOL_ITEM            (gtk_tool_item_get_type ())
  33. #define GTK_TOOL_ITEM(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_TOOL_ITEM, GtkToolItem))
  34. #define GTK_TOOL_ITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_ITEM, GtkToolItemClass))
  35. #define GTK_IS_TOOL_ITEM(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_TOOL_ITEM))
  36. #define GTK_IS_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_ITEM))
  37. #define GTK_TOOL_ITEM_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS((o), GTK_TYPE_TOOL_ITEM, GtkToolItemClass))
  38.  
  39. typedef struct _GtkToolItem        GtkToolItem;
  40. typedef struct _GtkToolItemClass   GtkToolItemClass;
  41. typedef struct _GtkToolItemPrivate GtkToolItemPrivate;
  42.  
  43. struct _GtkToolItem
  44. {
  45.   GtkBin parent;
  46.  
  47.   /*< private >*/
  48.   GtkToolItemPrivate *priv;
  49. };
  50.  
  51. struct _GtkToolItemClass
  52. {
  53.   GtkBinClass parent_class;
  54.  
  55.   /* signals */
  56.   gboolean   (* create_menu_proxy)    (GtkToolItem *tool_item);
  57.   void       (* toolbar_reconfigured) (GtkToolItem *tool_item);
  58.   gboolean   (* set_tooltip)          (GtkToolItem *tool_item,
  59.                        GtkTooltips *tooltips,
  60.                        const gchar *tip_text,
  61.                        const gchar *tip_private);
  62.  
  63.   /* Padding for future expansion */
  64.   void (* _gtk_reserved1) (void);
  65.   void (* _gtk_reserved2) (void);
  66.   void (* _gtk_reserved3) (void);
  67.   void (* _gtk_reserved4) (void);
  68. };
  69.  
  70. GType        gtk_tool_item_get_type (void) G_GNUC_CONST;
  71. GtkToolItem *gtk_tool_item_new      (void);
  72.  
  73. void            gtk_tool_item_set_homogeneous          (GtkToolItem *tool_item,
  74.                             gboolean     homogeneous);
  75. gboolean        gtk_tool_item_get_homogeneous          (GtkToolItem *tool_item);
  76.  
  77. void            gtk_tool_item_set_expand               (GtkToolItem *tool_item,
  78.                             gboolean     expand);
  79. gboolean        gtk_tool_item_get_expand               (GtkToolItem *tool_item);
  80.  
  81. void            gtk_tool_item_set_tooltip              (GtkToolItem *tool_item,
  82.                             GtkTooltips *tooltips,
  83.                             const gchar *tip_text,
  84.                             const gchar *tip_private);
  85.  
  86. void            gtk_tool_item_set_use_drag_window      (GtkToolItem *toolitem,
  87.                             gboolean     use_drag_window);
  88. gboolean        gtk_tool_item_get_use_drag_window      (GtkToolItem *toolitem);
  89.  
  90. void            gtk_tool_item_set_visible_horizontal   (GtkToolItem *toolitem,
  91.                             gboolean     visible_horizontal);
  92. gboolean        gtk_tool_item_get_visible_horizontal   (GtkToolItem *toolitem);
  93.  
  94. void            gtk_tool_item_set_visible_vertical     (GtkToolItem *toolitem,
  95.                             gboolean     visible_vertical);
  96. gboolean        gtk_tool_item_get_visible_vertical     (GtkToolItem *toolitem);
  97.  
  98. gboolean        gtk_tool_item_get_is_important         (GtkToolItem *tool_item);
  99. void            gtk_tool_item_set_is_important         (GtkToolItem *tool_item,
  100.                             gboolean     is_important);
  101.  
  102. GtkIconSize     gtk_tool_item_get_icon_size            (GtkToolItem *tool_item);
  103. GtkOrientation  gtk_tool_item_get_orientation          (GtkToolItem *tool_item);
  104. GtkToolbarStyle gtk_tool_item_get_toolbar_style        (GtkToolItem *tool_item);
  105. GtkReliefStyle  gtk_tool_item_get_relief_style         (GtkToolItem *tool_item);
  106.  
  107. GtkWidget *     gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item);
  108. GtkWidget *     gtk_tool_item_get_proxy_menu_item      (GtkToolItem *tool_item,
  109.                             const gchar *menu_item_id);
  110. void            gtk_tool_item_set_proxy_menu_item      (GtkToolItem *tool_item,
  111.                             const gchar *menu_item_id,
  112.                             GtkWidget   *menu_item);
  113. void        gtk_tool_item_rebuild_menu           (GtkToolItem *tool_item);
  114.  
  115. /* internal function */
  116. void       _gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item);
  117.  
  118. G_END_DECLS
  119.  
  120. #endif /* __GTK_TOOL_ITEM_H__ */
  121.